<template>
  <view class="a-icon-svg" :style="[boxStyle]">
    <!-- #ifdef APP-NVUE -->
    <image class="a-icon-pack-image" :style="[boxStyle]" :src="png" mode="scaleToFill"></image>
    <web-view v-if="isShow" class="__wh-0" :ref="_uid"  @onPostMessage="changeMessage" 
    src="/uni_modules/icon-park/hybrid/html/index.html" ></web-view>
    <!-- #endif -->
    <!-- #ifndef APP-NVUE -->
    <image class="a-icon-pack-image" :src="url" mode="aspectFit"></image>
    <!-- #endif -->
  </view>
</template>

<script>
import { IconWrapper , genContent } from '../runtime'
export default genContent('i-computer-one', IconWrapper('i-computer-one',(props)=>(
    '<?xml version="1.0" encoding="UTF-8"?>'
    + '<svg width="' + props.sizeWithUnit + '" height="' + props.sizeWithUnit + '" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">'
        + '<path d="M10 6C10 4.89543 10.8954 4 12 4H36C37.1046 4 38 4.89543 38 6V42C38 43.1046 37.1046 44 36 44H12C10.8954 44 10 43.1046 10 42L10 6Z" stroke="' + props.colors[0] + '" stroke-width="' + props.strokeWidth + '"/>'
        + '<path d="M17 12L31 12" stroke="' + props.colors[0] + '" stroke-width="' + props.strokeWidth + '" stroke-linecap="' + props.strokeLinecap + '" stroke-linejoin="' + props.strokeLinejoin + '"/>'
        + '<circle cx="17" cy="21" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="17" cy="27" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="17" cy="33" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="24" cy="21" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="24" cy="27" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="24" cy="33" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="31" cy="21" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="31" cy="27" r="2" fill="' + props.colors[0] + '"/>'
        + '<circle cx="31" cy="33" r="2" fill="' + props.colors[0] + '"/>'
    + '</svg>'
)))
</script>

<style lang="scss" scoped>
@import '../../style/index.css';
</style>
